var express = require('express');
var router = express.Router();
const hotService = require('../service/hotService');
/* GET home page. */
router.get('/',async function(req, res, next) {
    let {current,size} = req.query;
    res.send(await hotService.findAll({current,size}));
});

module.exports = router;
